#!/usr/bin/env python3

import os

# Path to ffconf.h file
ffconf_path = 'G:\\Espressif\\frameworks\\esp-idf-v5.5.1\\components\\fatfs\\src\\ffconf.h'

def check_ffconf():
    print(f"Checking {ffconf_path}...")
    
    # Check if file exists
    if not os.path.exists(ffconf_path):
        print(f"File not found: {ffconf_path}")
        return False
    
    # Read file content
    with open(ffconf_path, 'r') as f:
        content = f.read()
    
    # Find FF_FS_CASESENSITIVE setting
    lines = content.split('\n')
    for i, line in enumerate(lines):
        if 'FF_FS_CASESENSITIVE' in line:
            print(f"Line {i+1}: {line.strip()}")
            return True
    
    print("FF_FS_CASESENSITIVE not found in ffconf.h")
    return False

if __name__ == "__main__":
    check_ffconf()
